/**
 * 汪孟苹
 */
define(["jquery","template","as/template/growth/growthAdd.tpl"],function($,template,tpl){
    var ui = {};
    
    var drawPatients = function (data) {
        return template("growthAdd_patients", data);
    }
    var drawInfo = function (data) {
        return template("growthAdd_info", data);
    }
    
    ui.patients = function (options) {
        $("#"+options.id).append( tpl.patients() );
        var html = drawPatients(options);
        $("#"+options.id).html(html);
    }
    ui.info = function (options) {
        $("#"+options.id).append(tpl.info());
        var html = drawInfo(options.info);
        $("#"+options.id).html(html);
    }

    return ui;
});
